Indent your code and everything will be fine.
class PVT_frame:
"""Definition of PVT frame"""
def __init__(self, data_rmc, *args):
self.year = data_rmc['year']
self.month = data_rmc['month']
self.day = data_rmc['day']
Another thing, use triple double quotes for doc string.