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...
Simplest way to do this is
touch filename; open filename
Example
touch myfile.py; open myfile.py