I created a new repository on github.com and then cloned it to my local machine with
git clone https://github.com/usrname/mathematics.git
I
I can give you some information support, but also one concrete solution.
Here you can find examples of adding new files to your repository, and here is a video tutorial for this.
Below you can see a list of python packages that work with GitHub found on the developer page of GitHub:
But also you can push your files with commands in IPython if you need:
In [1]: import subprocess
In [2]: print subprocess.check_output('git init', shell=True)
Initialized empty Git repository in /home/code/.git/
In [3]: print subprocess.check_output('git add .', shell=True)
In [4]: print subprocess.check_output('git commit -m "a commit"', shell=True)