To create a file from terminal I type the following...
$ touch filename.py
To open the file I just created from terminal, I then type...
This is as lazy as one can get:
$ echo "your text" > myfile.txt